import request from "@/util/request.js"

export function pageGetDeviceWarnByDevice(param) {
	return request({
		url: '/iot/device/warn/pageGetByDevice',
		method: 'post',
		data: param
	})
}

export function pageGetDeviceWarnByUser(param) {
	return request({
		url: '/iot/device/warn/pageGetByUser',
		method: 'post',
		data: param
	})
}

export function pageGetDeviceWarnAll(param) {
	return request({
		url: '/iot/device/warn/pageGetAll',
		method: 'post',
		data: param
	})
}

export function pageGetDeviceWarnByCompany(param) {
	return request({
		url: '/iot/device/warn/pageGetByCompany',
		method: 'post',
		data: param
	})
}

export function pageGetDeviceWarnByDept(param) {
	return request({
		url: '/iot/device/warn/pageGetByDept',
		method: 'post',
		data: param
	})
}

export function updateDeviceWarnStatus(param) {
	return request({
		url: '/iot/device/warn/update',
		method: 'post',
		data: param
	})
}
